// 封装用户相关的信息的接口

// import store from "@/store/index"
import request from "@/utils/request"

// 登录接口
export function login(data) {
    return request({
        method:'post',
        url:'/auth/login',
        data,
    })
}

// 获取管理员相关的信息
export function getUserInfo() {
    return request({
        method:"get",
        url:"/auth/currentUser",
        /* headers:{
            Authorization:"Bearer "+store.state.user.token
        } */
    })
}